package com.yumeng.webapp.auth;

import com.yumeng.common.auth.BaseAuthInfo;
import lombok.Getter;
import lombok.Setter;

/** extends BaseAuthInfo
 * @author wxd
 * @date 2025/2/28 17:27
 */
@Getter
@Setter
public class CurrAuthInfo {

    public static final String DATA_KEY_ENT_ID = "entId";
    public static final String DATA_KEY_REG_ID = "regId";

    private BaseAuthInfo authInfo;

    public CurrAuthInfo(BaseAuthInfo authInfo){
        this.authInfo = authInfo;
    }

    public Long getEntId() {
        return authInfo.getValue(DATA_KEY_ENT_ID, Long.class);
    }

    public Long getRegId() {
        return authInfo.getValue(DATA_KEY_REG_ID, Long.class);
    }

}
